<?php
/**
 *@author Connor <caokang@foxmail.com>
 *@todo 用户说说信息
 *@link www.zeevin.com
 */
class Twitters extends CActiveRecord{

	public static function model($className=__CLASS__){
		return parent::model($className);
	}

	public function tableName(){
		return 'user_twitters';
	}	

	protected function beforeSave()
	{
		if(parent::beforeSave())
		{
			if($this->isNewRecord)
			{
				$this->dateline=time();
				$this->uid=Yii::app()->user->id;
			}
			return true;
		}
		else
			return false;
	}
	
}